//store 只支持同步的action
import {GET_BRAND_LIST} from '@/store/actionTypes';
import api from '@/api';
console.log(api)
export const getBrandList = () => {
    //axios  list  
    // 等待数据请求完成
    return (dispatch) => {
        api.getBrandList().then(res => {
            dispatch({
                type:GET_BRAND_LIST,
                list:res.data
            })
        })
    }
}